﻿
@{
    ViewBag.Title = "Gys_Pj";
}


<style>
    td {
        width: 66px
    } 
    tfoot{
        border:0px
    }
</style>
<h2>供方评鉴表</h2>
<div>
    <button class="btn" id="BUcun">提交</button><button class="btn" id="SHENh" style="display:none">审核</button>&emsp;<button class="btn">返回</button class="btn">
</div>
<table style="text-align:center;width:800px" border="1">
    <tr>
        <td colspan="2">供方名称</td>
        <td id="mc" colspan="2"></td>
        <td colspan="2">主营产品</td>
        <td id="cp" colspan="2"></td>
        <td colspan="2">我司对应产品</td>
        <td id="dycp" colspan="2"></td>
    </tr>
    <tr>
        <td colspan="2">网址</td>
        <td id="wz" colspan="2"></td>
        <td colspan="2">邮箱</td>
        <td id="yx" colspan="2"></td>
        <td colspan="2"></td>
        <td colspan="2"></td>
    </tr>
    <tr>
        <td colspan="2">联系人/职位</td>
        <td id="lxr" colspan="2"></td>
        <td colspan="2">电话</td>
        <td id="dh" colspan="2"></td>
        <td colspan="2">公司成立日期</td>
        <td id="clrq" colspan="2"></td>
    </tr>
    <tr>
        <td colspan="2">公司规模</td>
        <td colspan="10">土地<sapn id="td"></sapn>&emsp;&emsp;建筑面积<sapn id="mj"></sapn>&emsp;&emsp;总人数<sapn id="rs"></sapn>&emsp;&emsp;品质人数<sapn id="pzrs"></sapn></td>
    </tr>
    <tr>
        <td colspan="2">公司规模</td>
        <td colspan="10">前年度<sapn id="qn"></sapn>&emsp;&emsp;去年度<sapn id="zn"></sapn>&emsp;&emsp;本年度截止目前<sapn id="jn"></sapn></td>
    </tr>
    <tr>
        <td colspan="2">取得的体系证书/检测报告</td>
        <td colspan="10">
            <input type="checkbox" value="ISO9000" id="c1"/>ISO9000
            <input type="checkbox" value="ISO14001" id="c2"/>ISO14001
            <input type="checkbox" value="OHSAS18001" id="c3"/>OHSAS18001
            <input type="checkbox" value="甲醛" id="c4"/>甲醛
            <input type="checkbox" value="邻苯" id="c5"/>邻苯
            <input type="checkbox" value="ROHS" id="c6"/>ROHS
            <br />
            <span>
                <input type="checkbox" value="其他" class="Qita" id="c7"/>其他
                <input type="text" readonly="readonly"id="i1" />
            </span>
            
        </td>
    </tr>
    <tr>
        <td colspan="2">需要提供资料</td>
        <td colspan="10">
            <input type="checkbox" value="营业执照" id="c8"/>营业执照
            <input type="checkbox" value="税务登记证" id="c9"/>税务登记证
            <input type="checkbox" value="供货协议"id="c10" />供货协议
            <input type="checkbox" value="NDA" id="c11"/>NDA
            <input type="checkbox" value="不使用有害物质证明" id="c12"/>不使用有害物质证明
            <input type="checkbox" value="公司电子档介绍" id="c13" />公司电子档介绍
            <br />
            <span>
                <input type="checkbox" value="相关许可证（如有印刷/食品/危包等）" class="Qita"id="c14" />相关许可证（如有印刷/食品/危包等）
                <input type="text" readonly="readonly" id="i2"/>
            </span>
            
        </td>
    </tr>
</table>
<table style="text-align:center;width:800px" border="1">
    <tbody>
        <tr>
            <td colspan="12">供方质量能力调查情况</td>
        </tr>
        <tr>
            <td colspan="5">评价项目</td>
            <td>分值</td>
            <td>得分</td>
            <td colspan="7">说明</td>
        </tr>
        <tr>
            <td colspan="5" >生产能力</td>
            <td rowspan="4">10</td>
            <td rowspan="4" id="name1" class="fenshu"></td>
            <td rowspan="4" colspan="5" >
                <textarea class="col-12" id="name11"></textarea>
            </td>
        </tr>
        <tr>
            <td><input type="radio" name="1" value="10" class="ra" /></td>
            <td colspan="3">生产潜力（库存）大于生产能力</td>
            <td>10</td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="1" value="7" class="ra"/></td>
            <td colspan="3">生产能力（库存）无潜力可提升</td>
            <td>7</td>
        </tr>
        <tr>
            <td  class="ra"><input type="radio" name="1" value="4" class="ra"/></td>
            <td colspan="3">不能够满足公司正常的需求</td>
            <td>4</td>
        </tr>
        <tr>
            <td colspan="5" >质量体系</td>
            <td rowspan="4">10</td>
            <td rowspan="4" id="name2" class="fenshu"></td>
            <td rowspan="4" colspan="5"><textarea placeholder="" class="col-12" id="name22"></textarea></td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="2" value="10" class="ra"/></td>
            <td colspan="3">经过体系认证或产品认证</td>
            <td>10</td>
            
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="2" value="7" class="ra"/></td>
            <td colspan="3">有自己独特、有效的管理手段</td>
            <td>7</td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="2" value="4" class="ra"/></td>
            <td colspan="3">管理上无什么实际特点</td>
            <td>4</td>
        </tr>
        <tr>
            <td colspan="5" >产品信誉</td>
            <td rowspan="4">10</td>
            <td rowspan="4" id="name3" class="fenshu"></td>
            <td rowspan="4" colspan="5">
                <textarea placeholder="列举三个主要客户:" class="col-12" id="name33"></textarea>
            </td>
        </tr>
        <tr >
            <td class="ra"><input type="radio" name="3" value="10" class="ra"/></td>
            <td colspan="3">整个行业中信誉都很好</td>
            <td>10</td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="3" value="7" class="ra"/></td>
            <td colspan="3">一般，对于本公司还算可以</td>
            <td>7</td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="3" value="4" class="ra"/></td>
            <td colspan="3">差</td>
            <td>4</td>
        </tr>
        <tr>
            <td colspan="5" >公司技术能力</td>
            <td rowspan="4">20</td>
            <td rowspan="4" id="name4" class="fenshu"></td>
            <td rowspan="4" colspan="5">
                <textarea class="col-12" id="name44"></textarea>
            </td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="4" value="20" class="ra"/></td>
            <td colspan="3">技术能力较强，技术工人达60%</td>
            <td>20</td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="4" value="15" class="ra"/></td>
            <td colspan="3">一般，技术人员达1/3以上，设备也尚克</td>
            <td>15</td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="4" value="9"  class="ra"/></td>
            <td colspan="3">较差，技术人员很少，设备落后</td>
            <td>9</td>
        </tr>
        <tr>
            <td colspan="5" >产品质量</td>
            <td rowspan="4">30</td>
            <td rowspan="4"id="name5" class="fenshu"></td>
            <td rowspan="4" colspan="5">
                <textarea placeholder="对客户产品质量的调查:" class="col-12" id="name55"></textarea>
            </td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="5" value="30" class="ra"/></td>
            <td colspan="3">好，稳定，在行业中是领先的</td>
            <td>30</td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="5" value="25" class="ra" /></td>
            <td colspan="3">一般，质量不是很稳定</td>
            <td>23</td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="5" value="15" class="ra"/></td>
            <td colspan="3">较差</td>
            <td>15</td>
        </tr>
        <tr>
            <td colspan="5" >样品情况</td>
            <td rowspan="4">10</td>
            <td rowspan="4" id="name6" class="fenshu"></td>
            <td rowspan="4" colspan="5">
                <textarea  class="col-12" placeholder="样品质量描述:" id="name66"></textarea>
            </td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="6" value="10" class="ra"/></td>
            <td colspan="3">样品质量很好远高于要求</td>
            <td>10</td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="6" value="7" class="ra"/></td>
            <td colspan="3">样品情况</td>
            <td>7</td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="6" value="4" class="ra"/></td>
            <td colspan="3">样品不符合要求</td>
            <td>4</td>
        </tr>
        <tr>
            <td colspan="5">价格水平</td>
            <td rowspan="4">10</td>
            <td rowspan="4" id="name7" class="fenshu"></td>
            <td rowspan="4" colspan="5">
                <textarea class="col-12" placeholder="样品或者报价产品价格比较情况:"  id="name77"></textarea>
            </td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="7" value="10" class="ra"/></td>
            <td colspan="3">价格低于市场价</td>
            <td>10</td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="7" value="7" class="ra"/></td>
            <td colspan="3">价格和市场价持平</td>
            <td>7</td>
        </tr>
        <tr>
            <td class="ra"><input type="radio" name="7" value="4" class="ra"/></td>
            <td colspan="3">价格高于市场价</td>
            <td>4</td>
        </tr>
        <tr>
            <td colspan="12">评定结论（是否列入合格供方名录）70分以上合格， 60至70的由总经理确定，低于60不得列入合格供方:<span id="ZF_gys"></span></td>
        </tr>
        <tr>
            <td colspan="3" style="text-align:left">评定人员/日期<span id="pd"></span></td>
            <td colspan="3" style="text-align:left">审核人员/日期<span id="sh"></span></td>
            <td colspan="3" style="text-align:left">品质/日期<span id="pz1"></span></td>
            <td colspan="3" style="text-align:left">批准/日期<span id="pz2"></span></td>
        </tr>
        <tr>
            <td colspan="12" style="text-align:left">备注：<input type="text" class="col-10" id="gyszr_bz"/></td>
        </tr>
        <tr>
            <td colspan="12"></td>
        </tr>
    </tbody>
    <tfoot>
        <tr>
            <td colspan="8"></td>
            <td>编号:</td>
            <td colspan="3" id="gyssp_bh"></td>
        </tr>
    </tfoot>
</table>
<div style="display:none" id="bain">@(Session["bian"])</div>
<div style="display:none" id="bain_id"></div>
<div id="WT_dh_mb2" style="display:none;position:fixed;background-color:white;top:200px;width:660px;left:300px;z-index:1000;border:1px black solid;">
    <div>此供应商是否通过审核</div>
    <div><button class="btn shzt" id="TONg">通过</button>&emsp;<button class="btn shzt">驳回</button></div>
</div>

@section scripts
{
    <script src="~/Scripts/jquery-3.4.1.min.js"></script>
    <script src="~/Scripts/bootstrap.min.js"></script>
    <script>
        $(function () {
            $(document).on("click", ".ra", function () {
                var temp=0
                $("input[type=radio]:checked").each(function (i, item) {
                    temp += $(item).val()*1
                })
                $("#ZF_gys").text(temp);
            })
            var bian = $("#bain").text()
            if (bian!="") {
                $.ajax({
                    url: '/ShenPI/Gys_Pj',
                    type: 'GET',
                    data: { "state": 1, "bian": bian },
                    success: function (data) {
                        $.each(data, function (i, item) {
                            $("#bain_id").text(item.PR_ID)
                            $("#mc").text(item.PR_name)
                            $("#cp").text(item.PR_hang)
                            $("#dycp").text("")//对应产品
                            $("#wz").text(item.PR_gswz)
                            $("#yx").text(item.PR_you)
                            $("#lxr").text(item.PR_lxr)
                            $("#dh").text(item.PR_lxrsj)
                            $("#clrq").text(item.fl_clsj)
                            $("#td").text("")//土地面积
                            $("#mj").text(item.fl_cfmj)
                            $("#rs").text(item.fl_zrs)
                            $("#pzrs").text("")//品质人数
                            $("#qn").text(item.fl_turnover3)
                            $("#zn").text(item.fl_turnover2)
                            $("#jn").text(item.fl_turnover1)
                        })
                    },
                    error: function () {
                        alert('Request Error')
                    }
                })
                $.ajax({
                    url: '/ShenPI/Gys_Pj',
                    type: 'GET',
                    data: { "state": 4, "por_id": $("#bain_id").text() },
                    success: function (data) {
                        $.each(data, function (i, item) {
                            $("#name1").text(item.eva_scnl)
                            $("#name11").val(item.eva_scnl_s),
                            $("#name2").text(item.eva_zltx),
                            $("#name22").val(item.eva_zltx_s)
                            $("#name3").text(item.eva_cpxy)
                            $("#name23").val(item.eva_cpxy_s)
                            $("#name4").text(item.eva_jsnl)
                            $("#name24").val(item.eva_jsnl_s)
                            $("#name5").text(item.eva_cpzl)
                            $("#name55").val(item.eva_cpzl_s)
                            $("#name6").text(item.eva_ypqk)
                            $("#name66").val(item.eva_ypqk_s)
                            $("#name7").text(item.eva_jgsp)
                            $("#name77").val(item.eva_jgsp_s)
                            $("#gyszr_bz").val(item.eva_bz)
                            $("#gyssp_bh").text(item.eva_bh)
                            $("#pd").text(item.eva_pdry + "/" + item.eca_pdrq)
                            $("#sh").text(item.eva_shry + "/" + item.eva_shrq)
                            $("#pz1").text(item.eva_pz + "/" + item.eva_pzrq)
                            $("#pz2").text(item.eva_xmpz + "/" + item.eva_xmrq)
                        })
                    },
                    error: function () {
                        alert('Request Error')
                    }
                })
                $.ajax({
                    url: '/ShenPI/Gys_Pj',
                    type: 'GET',
                    data: { "state": 4, "por_id": $("#bain_id").text() },
                    success: function (data) {
                        $.each(data, function (i, item) {
                            if ($("#c1").val() == item.zz_ISO9000) {
                                $("#c1").prop("check", true)
                            } if ($("#c2").val() == item.zz_ISO14001) {
                                $("#c2").prop("check", true)
                            } if ($("#c3").val() == item.zz_OHSAS18001) {
                                $("#c3").prop("check", true)
                            } if ($("#c4").val() == item.zz_jq) {
                                $("#c4").prop("check", true)
                            } if ($("#c5").val() == item.zz_lb) {
                                $("#c5").prop("check", true)
                            } if ($("#c6").val() == item.zz_ROHS) {
                                $("#c6").prop("check", true)
                            } if ($("#c7").val() == item.zz_qt) {
                                $("#c7").prop("check", true)
                                $("#i1").val(item.zz_qt)
                            } if ($("#c8").val() == item.zz_yzzz) {
                                $("#c8").prop("check", true)
                            } if ($("#c9").val() == item.zz_swdjz) {
                                $("#c9").prop("check", true)
                            } if ($("#c10").val() == item.zz_ghxy) {
                                $("#c10").prop("check", true)
                            } if ($("#c11").val() == item.zz_NDA) {
                                $("#c11").prop("check", true)
                            } if ($("#c12").val() == item.zz_yhwz) {
                                $("#c12").prop("check", true)
                            } if ($("#c13").val() == item.zz_gsjs) {
                                $("#c13").prop("check", true)
                            } if ($("#c13").val() == item.zz_xgxk) {
                                $("#c13").prop("check", true)
                                $("#i3").val(item.zz_xgxk)
                            }
                        })
                    },
                    error: function () {
                        alert('Request Error')
                    }
                })
            }
            
            $("input[name=7]").click(function (e) {
                $("#name7").text($(e.target).val())
            })
            $("input[name=2]").click(function (e) {
                $("#name2").text($(e.target).val())
            })
            $("input[name=3]").click(function (e) {
                $("#name3").text($(e.target).val())
            })
            $("input[name=4]").click(function (e) {
                $("#name4").text($(e.target).val())
            })
            $("input[name=5]").click(function (e) {
                $("#name5").text($(e.target).val())
            })
            $("input[name=6]").click(function (e) {
                $("#name6").text($(e.target).val())
            })
            $("input[name=1]").click(function (e) {
                $("#name1").text($(e.target).val())
            })
            $(document).on("click", ".Qita", function (e) {
                if ($(this).is(':checked')) {
                    $(e.target).next().attr("readonly", false)
                } else {
                    $(e.target).next().text("")
                    $(e.target).next().attr("readonly", "readonly")
                }
                
            })

            $(document).on("click", "#BUcun", function (e) {
                var por_id = $("#bain_id").text()
                $.ajax({
                    url: '/ShenPI/Gys_Pj',
                    type: 'GET',
                    data: { "state": 2},
                    success: function (data) {
                        var name = $("#Login_N").text()
                        var now = new Date($.now());
                        var year = (now.getFullYear()).toString();
                        var month = (now.getMonth() + 1).toString();
                        var date = (now.getDate()).toString();
                        var time = year + "/" + month + "/" + date
                        var index = 0
                        var temp = 0
                        var zhuang
                        var pz
                        var name2
                        var time2
                        var name3
                        var time3
                        var pz2
                        var pzrs
                        $(".fenshu").each(function (i, item) {
                            if ($(item).text() != null) {
                                index++
                            }
                        })
                        if (index == 7) {
                            $(".fenshu").each(function (i, item) {
                                temp += $(item).text() * 1
                                if (temp >= 70) {
                                    zhuang = "合格"
                                    pz = "批准"
                                    name2 = name
                                    time2 = time
                                    time3 = time3
                                }
                                else if (temp < 70 && temp >= 60) {
                                    zhuang = "待审核"
                                }
                                else {
                                    zhuang = "不合格"
                                }
                            })
                            var pingf = []
                            pingf.push({
                                eva_scnl: $("#name1").text(),
                                eva_scnl_s: $("#name11").val(),
                                eva_zltx: $("#name2").text(),
                                eva_zltx_s: $("#name22").val(),
                                eva_cpxy: $("#name3").text(),
                                eva_cpxy_s: $("#name23").val(),
                                eva_jsnl: $("#name4").text(),
                                eva_jsnl_s: $("#name24").val(),
                                eva_cpzl: $("#name5").text(),
                                eva_cpzl_s: $("#name55").val(),
                                eva_ypqk: $("#name6").text(),
                                eva_ypqk_s: $("#name66").val(),
                                eva_jgsp: $("#name7").text(),
                                eva_jgsp_s: $("#name77").val(),
                                eva_pdry: name,
                                eca_pdrq: time,
                                eva_shry: name2,
                                eva_shrq: time2,
                                eva_pz: pz,
                                eva_pzrq: time3,
                                eva_bz: $("gyszr_bz").val(),
                                eva_bh: "ZR" + (data*1+1),
                                eva_xmpz: pz2,
                                eva_xmrq: pzrs,
                                eva_zhuang: zhuang,
                                por_id: por_id,
                            })
                            console.log(pingf)

                            $.ajax({
                                url: "/ShenPI/addlxx",
                                type: "POST",
                                data: JSON.stringify(pingf),
                                contentType: "application/json;charset=utf-8",
                                dataType: "json",
                                success: function (text) {

                                },
                                error: function (text) {
                                    alert("系统错误" + text);
                                }
                            })

                            var zl = []
                            var cd1 = 0
                            var cd2 = 0
                            var cd3 = 0
                            var cd4 = 0
                            var cd5 = 0
                            var cd6 = 0
                            var cd7 = 0
                            var cd8 = 0
                            var cd9 = 0
                            var cd10 = 0
                            var cd11 = 0
                            var cd12 = 0
                            var cd13 = 0
                            var cd14 = 0
                            if ($("#c1").is(':checked')) {
                                cd1 = $("#c1").val()
                            }
                            if ($("#c2").is(':checked')) {
                                cd2 = $("#c2").val()
                            }
                            if ($("#c3").is(':checked')) {
                                cd3 = $("#c3").val()
                            }
                            if ($("#c4").is(':checked')) {
                                cd4 = $("#c4").val()
                            }
                            if ($("#c5").is(':checked')) {
                                cd5 = $("#5").val()
                            }
                            if ($("#c6").is(':checked')) {
                                cd6 = $("#c6").val()
                            }
                            if ($("#c7").is(':checked')) {
                                cd7 = $("#i1").val()
                            }
                            if ($("#c8").is(':checked')) {
                                cd8 = $("#c8").val()
                            }
                            if ($("#c9").is(':checked')) {
                                cd9 = $("#c9").val()
                            }
                            if ($("#c10").is(':checked')) {
                                cd10 = $("#c10").val()
                            }
                            if ($("#c11").is(':checked')) {
                                cd11 = $("#c11").val()
                            }
                            if ($("#c12").is(':checked')) {
                                cd12 = $("#c12").val()
                            }
                            if ($("#c13").is(':checked')) {
                                cd12 = $("#c13").val()
                            }
                            if ($("#c14").is(':checked')) {
                                cd13 = $("#i1").val()
                            }
                            zl.push({
                                zz_ISO9000: cd1,
                                zz_ISO14001: cd2,
                                zz_OHSAS18001: cd3,
                                zz_jq: cd4,
                                zz_lb: cd5,
                                zz_ROHS: cd6,
                                zz_qt: cd7,
                                zz_yzzz: cd8,
                                zz_swdjz: cd9,
                                zz_ghxy: cd10,
                                zz_NDA: cd11,
                                zz_yhwz: cd12,
                                zz_gsjs: cd13,
                                zz_xgxk:cd14,
                                pro_id: por_id,
                            })
                            console.log(pingf)
                            $.ajax({
                                url: "/ShenPI/addzl",
                                type: "POST",
                                data: JSON.stringify(pingf),
                                contentType: "application/json;charset=utf-8",
                                dataType: "json",
                                success: function (text) {
                                    if (zhuang == "合格") {
                                        changepro()
                                    }
                                    else if (zhuang == "待审核") {
                                        tjsp()
                                    }
                                },
                                error: function (text) {
                                    alert("系统错误" + text);
                                }
                            })
                        }
                        else {
                            alert("评分还未完成，请完成后提交")
                        }

                    },
                    error: function () {
                        alert('Request Error')
                    }
                })
                
                
            })
            function tjsp() {
                var now = new Date($.now());
                //获取当前年月日
                var year = (now.getFullYear()).toString();
                var month = (now.getMonth() + 1).toString();
                var date = (now.getDate()).toString();
                var Qs = year + "/" + month + "/" + date
                //填充申请人信息

                var sjinfPLM = ""
                var FJIDNS = {
                    "FFirst": "业务发展部经理",//一级审批人
                    "FFZ": "审批中",//状态
                    "FJINF": $("#bain").text(),
                    "FShenR": $("#Login_N").text(),
                    "FSHENP": "1",
                    "FMIao": "供应商审批",
                    "FQsj": Qs
                }
                console.log(FJIDNS);
                if (FJIDNS.FFirst != "" || FJIDNS.FTwo != "" || FJIDNS.FThree != "") {
                    $.ajax({
                        url: "/Procure/HeaApplication",
                        type: 'POST',
                        data: FJIDNS,
                        success: function (text) {
                            alert(text)
                            location.reload(true)
                        },
                        error: function (text) {
                            alert("系统错误" + text);
                        }
                    })
                } else {
                    alert("shijnfoodod")
                }
            }
            function changepro() {
                $.ajax({
                    url: '/ShenPI/Gys_Pj',
                    type: 'GET',
                    data: { "state": 3, "bian": $("#bain").text() },
                    success: function (data) {
                    },
                    error: function () {
                        alert('Request Error')
                    }
                })
            }

            $(document).on("click", "SHENh", function () {
                $("#WT_dh_mb2").css({"display":"block"})
            })

            $(document).on("click", ".shzt", function (e) {
                var zhuang
                var pz2
                var name = $("#Login_N").text()
                var now = new Date($.now());
                var year = (now.getFullYear()).toString();
                var month = (now.getMonth() + 1).toString();
                var date = (now.getDate()).toString();
                var time = year + "/" + month + "/" + date

                if ($("#ZF_gys").text() * 1 > 69) {
                    zhuang = "合格"
                    pz2 = "批准"
                }
                else if ($("#ZF_gys").text() * 1 > 59) {
                    zhuang = "待审核"
                    pz2 = "待审核"
                }
                else {
                    zhuang = "不合格"
                    pz2 = "不通过"
                }

                var pingf = []
                pingf.push({
                    eva_shry: name,
                    eva_shrq: time,
                    eva_bh: $("#gyssp_bh").text(),
                    eva_xmpz: pz2,
                    eva_xmrq: time,
                    eva_zhuang: zhuang,
                })
                console.log(pingf)
                $.ajax({
                    url: "/ShenPI/changesp",
                    type: "POST",
                    data: JSON.stringify(pingf),
                    contentType: "application/json;charset=utf-8",
                    dataType: "json",
                    success: function (text) {
                        if (zhuang == "合格") {
                            changepro()
                        }
                        else if (zhuang=="待审核") {
                            tjsp()
                        }

                    },
                    error: function (text) {
                        alert("系统错误" + text);
                    }
                })
            })
        })
    </script>

}